Animating a node for the duration of its lifetime

When you animate a node for the duration of its lifetime, the animation starts when the node is attached to the scene graph, and runs for as long as the node is attached to the scene graph.

To animate nodes for the duration of their lifetime:

  1. In the Project select or create the node you want to animate.
    For example, create an Image node or a Sphere node.
  2. Create an animation with a Timeline Sequence and a Timeline Entry. See Creating keyframe animations.
  3. In the Library select the Timeline Entry, and in the Properties enable the Infinite property in the Repeat Count property.
  4. In the Project select the node you are animating, in the Triggers click , and add the On Attached trigger.
  5. In the Triggers click the Add drop-down menu, and select the Play Animation action.
    The Message Editor opens.
  6. In the Message Editor set:


    Kanzi animates the node when it attaches it to the scene graph and runs the animation for as long as the node is attached to the scene graph.

See also

Tutorial: Create keyframe animations

Creating keyframe animations

Changing the interpolation mode between keyframes

Creating animations and timelines using the Kanzi Engine API

Editing animation clips

Editing timeline sequences

Animations best practices

Animations